layui.use(['form','jquery','layer','laydate'],function () {
    var form = layui.form;
    var $ = layui.$;
    var layer = layui.layer;
    var laydate = layui.laydate;
    //提交时间渲染
    laydate.render({
        elem: '#updateDate',
        type: 'datetime'
    });

    form.on('submit(search)',function (obj) {
        $.ajax({
            url: '/SyUserOrder/getAdvancedSearchCourses',
            data: obj.field,
            type: 'post',
            dataType: 'json',
            success: function (data) {
                parent.$("#ordersData").data("ordersData",data.data);
                var layer = parent.layer;
                layer.close(layer.index);
            }
        });
        return false;
    });
})